// 菜单动态路由
export default [
    // 工作台
    {
        path: '/dashboard',
        name: 'dashboard',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
            title: '工作台',
            // q: isTab这串代码是什么意思
            icon: '<House />'
        }

    },
    // 基础数据管理
    {
        path: '/branches',
        name: 'branches',
        children: [
        // 机构管理
            {
                path: 'organization-manage',
                name: 'organizationManage',
                component: () => import('@/views/branches/organizationManage.vue'),
            }
        ]
    },
    // 车辆管理
    {
        path: '/transit',
        name: 'transit',
        children: [
            // 车型管理
            {
                path: 'car-models',
                name: 'carModels',
                component: () => import('@/views/transit/car-models.vue'),
            }
        ]
    },
    // 员工管理
    {
        path: '/employee',
        name: 'employee',
        children: [
            // 快递员管理
            {
                path: 'operational-range',
                name: 'operationalRange',
                component: () => import('@/views/employee/operational-range.vue'),
            }
        ]
    },
    
    // 业务管理
    {
        path: '/business',
        name: 'business',
        children: [
            // 订单管理
            {
                path: 'order-manage',
                name: 'orderManage',
                component: () => import('@/views/business/order-manage.vue'),
            }
        ]
    },
    // 调度管理
    {
        path: '/transport',
        name: 'transport',
        children: [
            // 运输任务管理
            {
                path: 'transport-task',
                name: 'transportTask',
                component: () => import('@/views/transport/transport-task.vue'),
            }
        ]
    },
]
